package com.car.controller;

import com.car.service.RedisService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class RedisController implements ApplicationRunner {

    @Autowired
    private RedisService redisService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        redisService.cellTypeCache();
        redisService.basicInfoCache();
        redisService.carBatteryCache();
      //  redisService.carInfoCache();
        redisService.cellPackCache();
        redisService.chassisBrakeCache();
        redisService.drivigAssistanceCache();
        redisService.externalConfigCache();
        redisService.powerSystemCache();
        redisService.seatConfigurationCache();
        redisService.securityConfigurationCache();
        redisService.sizeInfoCache();
        redisService.interiorCache();
        redisService.inforMAtionCache();
    }
}
